package com.cskaoyan.service;

import com.cskaoyan.bean.bo.CouponCreateBo;
import com.cskaoyan.bean.bo.CouponDeleteBo;
import com.cskaoyan.bean.bo.CouponUpdateBo;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.vo.CouponListUserVo;
import com.cskaoyan.bean.vo.CouponListVo;
import com.cskaoyan.bean.vo.CouponReadVo;
import com.cskaoyan.bean.vo.CouponVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author: 陈慧颖
 * @time: Created by chy on 2022/6/4 15:14
 */
public interface CouponService {
    CouponListVo listAllCoupon(@Param("baseParam") BaseParam baseParam, String name , Integer type , Integer status);

    CouponVo create(CouponCreateBo couponCreateBo);

    CouponUpdateBo updateOneCoupon(CouponUpdateBo couponUpdateBo);

    void deleteOneById(CouponDeleteBo couponDeleteBo);

    CouponListUserVo listuserByCouponId(BaseParam baseParam, Integer couponId);

    CouponReadVo read(Integer id);

}
